﻿using System;

namespace Terraria.ModLoader
{
	// Token: 0x02000194 RID: 404
	public class GlobalRecipe
	{
		// Token: 0x17000133 RID: 307
		// (get) Token: 0x06001097 RID: 4247 RVA: 0x0000EB85 File Offset: 0x0000CD85
		// (set) Token: 0x06001098 RID: 4248 RVA: 0x0000EB8D File Offset: 0x0000CD8D
		public Mod mod { get; internal set; }

		// Token: 0x17000134 RID: 308
		// (get) Token: 0x06001099 RID: 4249 RVA: 0x0000EB96 File Offset: 0x0000CD96
		// (set) Token: 0x0600109A RID: 4250 RVA: 0x0000EB9E File Offset: 0x0000CD9E
		public string Name { get; internal set; }

		// Token: 0x0600109B RID: 4251 RVA: 0x0000EBA7 File Offset: 0x0000CDA7
		public virtual bool Autoload(ref string name)
		{
			return this.mod.Properties.Autoload;
		}

		// Token: 0x0600109C RID: 4252 RVA: 0x00008CF7 File Offset: 0x00006EF7
		public virtual bool RecipeAvailable(Recipe recipe)
		{
			return true;
		}

		// Token: 0x0600109D RID: 4253 RVA: 0x00006B58 File Offset: 0x00004D58
		public virtual void OnCraft(Item item, Recipe recipe)
		{
		}
	}
}
